Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreign key ux mode annotation support #986

Merged
merged 7 commits into from
Aug 31, 2023
Merged

Foreign key ux mode annotation support #986

merged 7 commits into from
Aug 31, 2023

Conversation

jrchudy
Copy link
Member

@jrchudy jrchudy commented Aug 21, 2023

This PR adds the inputDisplayMode property to foreign key pseudo columns. This is added for 3 annotations currently as the property selector_ux_mode. By default, this property is set to popup to use the more robust recordset modal popup that includes sorting, filtering, and updating page size.

For defining inputDisplayMode, it will look for selector_ux_mode in the following order:

  1. defined on visible-columns annotation
  2. defined on foreign-key annotation
  3. defined on table-display annotation when the table is the leaf table in a single outbound foreign key
  4. default value of popup

These changes go alongside the changes in chaise to add a another input field for the dropdown case.

@jrchudy jrchudy requested a review from RFSH August 21, 2023 17:06
@jrchudy jrchudy self-assigned this Aug 21, 2023
js/core.js Outdated Show resolved Hide resolved
docs/user-docs/annotation.md Outdated Show resolved Hide resolved
Copy link
Member

@RFSH RFSH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good and ready to be merged. I just asked for a very small code change.

You should also document this property on the column-directive standalone doc.

@jrchudy jrchudy added the annotation Anything related the annotations (adding new one or changing existing one) label Aug 29, 2023
@jrchudy jrchudy merged commit c658318 into master Aug 31, 2023
@jrchudy jrchudy deleted the fkey-ux-mode branch August 31, 2023 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotation Anything related the annotations (adding new one or changing existing one)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants